package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:ahang
 * @create:2022-12-12 13:45
 * @Description:
 */
public interface CustomerDao {
    /**
     * 分页查询客户列表
     * @param customerName
     * @return
     */
    List<Customer> getCustList(@Param("customerName") String customerName);

    /**
     * 添加客户
     * @param customer
     */
    void savaCust(Customer customer);

    /**
     * 修改客户
     * @param customerId
     * @param customerName
     * @param contacts
     * @param phoneNumber
     * @param address
     * @param remarks
     */
    void updata(@Param("customerId") Integer customerId,
                @Param("customerName")String customerName,
                @Param("contacts")String contacts,
                @Param("phoneNumber")String phoneNumber,
                @Param("address")String address,
                @Param("remarks")String remarks);

    /**
     * 删除客户
     * @param ids
     */
    void removeCusts(@Param("ids") String ids);
}
